package nine;

import java.util.Calendar;

public class Nine {
	public static void main(String[] args) {
		Calendar date = Calendar.getInstance();
		int year = date.get(Calendar.YEAR);
		date.set(Calendar.YEAR, 1900);

		while (date.get(Calendar.YEAR) <= year) {
			if (date.getActualMaximum(Calendar.DAY_OF_YEAR) == 366) {
				System.out.println(date.get(Calendar.YEAR));
			}
			date.add(Calendar.YEAR, 1);
		}

	}
}
